package top.yaofengqiao.springcloudsimple.auth.biz.trigger.http.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author yfq
 * @date 2024/6/7 11:17
 * @description
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RefreshTokenDTO {
    @NotBlank(message = "refreshToken不能为空")
    @Pattern(regexp = "^Bearer [\\w-]*", message = "refreshToken格式不正确")
    private String refreshToken;

    // 客户端id
    @NotBlank(message = "clientId不能为空")
    private String clientId;

    // 客户端secret
    @NotBlank(message = "clientSecret不能为空")
    protected String clientSecret;
}
